/**
 * 
 */
package com.atozsoft.wf;

import java.util.Iterator;
import java.util.List;

import com.eos.system.annotation.Bizlet;
import com.eos.workflow.data.WFActivityDefine;


/**
 * @author houfy
 * @date 2014-12-02 14:47:46
 *
 */
@Bizlet("FinishedWorkItemList")
public class FinishedWorkItemList {

	/**
	 * @param objs
	 * @return
	 * @author houfy
	 * @description 将获取到的已执行工作项去除开始节点
	 */
	@Bizlet("")
	public static List<WFActivityDefine> getFinishedWorkItemList(List<WFActivityDefine> list) {
		// TODO 自动生成的方法存根
		Iterator<WFActivityDefine> db_iterator = list.iterator();
		if(list != null){
			while(db_iterator.hasNext()){
				WFActivityDefine dbwfad = db_iterator.next();
				
				if(dbwfad.getId().equals("startActivity")){
					list.remove(dbwfad);
					db_iterator = list.iterator();
				}
			}
		}
		return list;
	}
}
